import { postData } from "@/utils/request";

export async function RegisterByPhone(data: any) {
    const result = await postData(`/login/registerByPhone`,data);
    return result;
  }
  
  export async function passwordLogin(data: any) {
    const result = await postData(`/auth/login`,data);
    return result;
  }
  
  //发送验证码
  export async function sendEmail(data: any) {
    const result = await postData(`/login/sendEmail`,data);
    return result;
  }
  
  //发送验证码
  export async function emailLoginApi(data: any) {
    const result = await postData(`/login/loginByEmail`,data);
    return result;
  }